/**
 * 
 */
package ase.eleitweg.common;

import java.io.*;

/**
 * @author Aigner
 *
 */
public class Document implements Serializable {
	
	public static final long serialVersionUID = 1L;
	
	private int id;				//Unique number of the document
	private String name;		//Name of the document
	private int version;		//Version of the document
	private byte[] binary;		//Binary
	private Run r;
	
	public Document(int id, String name, int version, byte[] binary, Run r) {
		super();
		this.id = id;
		this.name = name;
		this.version = version;
		this.binary = binary;
		this.r = r;
	}

	public Document(int id, String name, int version, Run r) {
		super();
		this.id = id;
		this.name = name;
		this.version = version;
		this.r = r;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getVersion() {
		return version;
	}

	public void setVersion(int version) {
		this.version = version;
	}

	public byte[] getBinary() {
		return binary;
	}

	public void setBinary(byte[] binary) {
		this.binary = binary;
	}
	
	public void setR(Run r) {
		this.r = r;
	}
	
	public Run getR() {
		return r;
	}
}
